package cn.tianyigps.tianyigpspublic.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2019/4/8_14:34
 */
@Data
public abstract class BaseEntity implements Serializable {

    private static final long serialVersionUID = 671591850420099004L;

    @Id
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String status = "1";//0删除 1正常 其他待拓展

    private String clientId;//客户端ID

    private String equipmentId;//设备ID

}

